package top.songxs.yygh.hosp.repository;

import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;
import top.songxs.yygh.model.hosp.Hospital;

import java.util.List;

@Repository
public interface HospitalRepository extends MongoRepository<Hospital,String> {
    Hospital findByHoscode(String hoscode);
    List<Hospital> findHospitalByHosnameLike(String hosname);

    Hospital getByHoscode(String hoscode);


}